package store

import (
	"auth/model"
	"auth/model/entity"
)

type IAuthorityMenu interface {
	Create(e *entity.AuthorityMenu) error
	DeleteByMenuId(menuId int64) error
	DeleteByAuthorityId(authorityId int64) error
	List(in *model.AuthorityMenuListRequest) (int, []*entity.AuthorityMenu, error)
	SetMenuAuthority(authorityId int64, auth []*entity.AuthorityMenu) error
	FindByAuthorityIds(authorityId []int64) ([]*entity.AuthorityMenu, error)
}
